Ext.define('AM.view.UserDetailView',{
	extend:'Ext.Panel',
	alias:'widget.userdetailview',
	tplMarkup: [
            'Name: {name}<br/>',
            'sex: {sex}<br/>',
            'Email: {email}<br/>'
        ],
    startingMarkup: 'Please select a book to see additional details',
    initComponent:function(){
    	this.tpl = Ext.create('Ext.Template',this.tplMarkup);
    	this.html = this.startingMarkup;
    	this.callParent();
    },
    updateDetailView:function(data){
    	this.tpl.overwrite(this.body,data);
    }
});